import Vue from "vue";
import VueRouter from "vue-router";
import ZhuYe from "@/views/ZhuYe.vue";
import XinWen from "@/views/XinWen.vue";
import TiYu from "@/views/TiYu.vue";
import TiYuzhye from "@/views/TiYuzhye.vue";
import GuoNai from "@/views/GuoNai.vue";
import GuoWei from "@/views/GuoWei.vue";
Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    { path: "/zhuye", component: ZhuYe },
    { path: "/xinwen", component: XinWen },
    {
      path: "/tiyu",
      component: TiYu,
      children: [
        { path: "tiyuzhye", component: TiYuzhye },
        { path: "guonai", component: GuoNai },
        { path: "guowei", component: GuoWei },
      ],
    },
  ],
});
export default router;
